<%@ page language="java" import="java.util.*,com.king.cms.common.PowerParameter,com.fredck.FCKeditor.*" pageEncoding="UTF-8"%>
<%@ include file="/hotel/include/css.jsp"%>
<%@ taglib uri="/WEB-INF/tlds/FCKeditor.tld" prefix="FCK" %> 
<%-- /*包含css样式表*/ --%>
<%  
	String pageFunc = "内容设置";		//功能描述
%>
<% 
	int pow=(PowerParameter.save | PowerParameter.cls | PowerParameter.list);
	String menuStr = (String)request.getAttribute("menu");
	String module = (String) request.getAttribute("module");
	 
	Map m = (Map)request.getAttribute("data"); 
	String contentId = (String)request.getAttribute("contentId");
	String content = (String)request.getAttribute("content");
	if(null == m)
	  m = new HashMap();
%>


<html>
	<head>
		<title><%=pageFunc%>
		</title>
		<meta  http-equiv="Expires"     CONTENT="0">           
<meta  http-equiv="Cache-Control"     CONTENT="no-cache">           
<meta  http-equiv="Pragma"     CONTENT="no-cache">
		<script language="javascript">
	function doEnable()
	{
		form1.bmMc.disabled=false;
		form1.bmBzrs.disabled=false;
	} 
	function ki_save(){
      var flag = true;
      
	  if(clskg(document.getElementById("contentName").value) == '') {
	 	   alert('内容标题不能为空');
	 	   flag = false;
	 	   return;
	  }
	  
	 if(flag)
	    form1.submit();
	}
	function ki_cls(){
		document.getElementById("clientName").value='';
		document.getElementById("clientIp").value='';
		//document.getElementById("clientMac").value='';
		document.getElementById("clientAddress").value='';
		//document.getElementById("clientType").value='';
		document.getElementById("template").value='';
		document.getElementById("ORDERNUM").value='';
		document.getElementById("clientArea").value='';
		//document.getElementById("defaulttemplate_<%=m.get("DEFAULT_DISPLAY_TYPE")%>").value='';
		document.getElementById("group").value='';
		document.getElementById("displayType").value='';
		
		
	}
	function ki_list(){
		window.open('<%=basePath%>tadmin/staticList.do?module=<%=module%>','_self');
	}
	////////除去空格/////////
	function clskg(va){
	  var th=/\s/g;
	 va=va.replace(th,'');
	 return va;
	}
	 
</script>
	</head>
	<body background="<%=imgpath%>top3.gif" leftmargin="0" topmargin="0">
		 <br> 
		 <center>
		<form name="form1" method="post"
			action="<%=basePath%>tadmin/staticEdit.do?action=save">
			<table border="0" cellpadding="0" cellspacing="0" align="center" width="98%"
				height="2">
				<tr>
					<td width="9" height="1"></td>
					<td height="1" background="<%=path%>/img/images_06.gif">
						<p align="center">
							<b><%=pageFunc%></b>
					</td>
					<td width="9" height="1"></td>
				</tr>
			</table>
			<table height="80%" border="0" cellpadding="2" cellspacing="1"
				class="bg_table" style="width:100%" bordercolor="#111111">
				<tr class="top_td">
					<td colspan="4"  >
						  
					</td>
				</tr>
				<tr class="td2">
					<td width="20%">
						内容名称
					</td>
					<td width="30%" >
					     <input type="hidden" name="module" value="<%=module %>">
					      <input type="hidden" name="contentId" value="<%=contentId %>">
					     <input type="text" name="contentName" style="width:98%" value="<%=m.get("CONTENT_NAME")==null?"":m.get("CONTENT_NAME") %>">
					</td>
					<td width="20%">
						所属按钮
					</td>
					<td width="30%" >
					    <%=menuStr %>
					</td>
					 
				</tr> 
				<tr class="td2">
					<td width="20%">
						描述说明
					</td>
					<td width="80%" colspan="3">
					     <input type="text" name="content_desc" style="width:99%" value="<%=m.get("CONTENT_DESC")==null?"":m.get("CONTENT_DESC") %>">
					</td>
					 
				</tr> 
				<tr class="td2">
					<td colspan="4"  >
					<%	FCKeditor oFCKeditor ;
						oFCKeditor = new FCKeditor( request, "content" ) ;
						oFCKeditor.setBasePath(path+ "/FCKeditor/" ) ;
						oFCKeditor.setValue(content );
						oFCKeditor.setHeight("400");
						out.println( oFCKeditor.create() ) ;
					%>
					</td>
				</tr>
				 
			</table>
</form>
</center>
		</body>
</html>
<%@ include file="/hotel/pow.jsp"%>
